# define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

void test()
{
	ListNode* plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	ListPushBack(plist, 6);
	ListPushFront(plist, 0);
	ListPushFront(plist, -1);
	ListPushFront(plist, -2);
	//ListPopBack(plist);
	//ListPopBack(plist);
	//ListPopBack(plist);
	//ListPopBack(plist);//-1 -2 0 1 2
	//ListPopFront(plist);
	//ListPopFront(plist);//0 1 2
	ListPrint(plist);//-2 -1 0 1 2 3 4 5 6
	ListNode* pos = ListFind(plist, 3);
	if (pos != NULL)
	{
		ListModity(pos, 100);
	}
	ListPrint(plist);////-2 -1 0 1 2 100 4 5 6
}
int main()
{
	test();
	return 0;
}